Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Re problem run lotusscript agent from Xpage

You need to open the Application Properties from Domino Designer, then you get the XPages tab. See Declan Lynch's course on XPages, specifically this part:
http://www.qtzar.com/blogs/qtzar.nsf/d6plinks/DSLH-7PYN2Z

notesdocument.getNoteID() gets the correct value, so there's something wrong with getting the agent.

I've tried putting a button in to call an agent in the same database and run on server, passing a noteID and msgboxing a value from the relevant document in the agent and it works fine. My code was:

var myAgent:NotesAgent = database.getAgent("test");
myAgent.runOnServer(profile.getNoteID())

"profile" is the DominoDocument data source on the XPage. My agent was also Agent List with target None. I notice your code has the agent in brackets, by accident I missed those out and it found the agent fine, so I'm not sure if tha' the problem. Switching on the default error page will show you which line the code is faiing on though.

Regards
Paul


Feedback response number WEBB7UMKXD created by ~Maria Xanjumiberg on 08/05/2009

Run Lotusscript agent from Xpage (~John Prewetexo... 4.Aug.09)
. . Re: Run Lotusscript agent from Xpag... (~Maria Xanjumib... 4.Aug.09)
. . . . Re problem run lotusscript agent fr... (~John Prewetexo... 5.Aug.09)
. . . . . . Re problem run lotusscript agent fr... (~Maria Xanjumib... 5.Aug.09)
. . . . . . . . Re problem run lotusscript agent fr... (~John Prewetexo... 5.Aug.09)
. . . . . . . . . . Re problem run lotusscript agent fr... (~Maria Xanjumib... 6.Aug.09)
. . . . . . . . . . . . Re problem run lotusscript agent fr... (~John Prewetexo... 6.Aug.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS